package com.wwu.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 *  系统用户角色实体
 * @author 一蓑烟雨
 * @date 2021-10-26
 * @version 1.0.0
 */
@Data
@Accessors(chain = true)
@TableName("sys_user_role")
@ApiModel(value="SysUserRole:系统用户角色实体", description="系统用户角色实体")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录流水号")
    @TableId(value = "record_id", type = IdType.ASSIGN_ID)
    private String recordId;

    @ApiModelProperty(value = "用户编码")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "权限编码")
    @TableField("role_id")
    private String roleId;
}
